package com.book.core.dto;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class SysUserGrantRoleDTO {
    @NotNull(message = "用户ID不能为空")
    private Integer userId;
    @NotEmpty(message = "角色ID列表不能为空")
    private List<Integer> roleIdList;
}
